label define Lexitreason 1 `"Unexplained"', modify
label define Lexitreason 2 `"Not enough wealth"', modify
label define Lexitreason 3 `"Emigration"', modify
label define Lexitreason 4 `"Control transfer before death"', modify
label define Lexitreason 5 `"Inheritance before death"', modify
label define Lexitreason 6 `"Death"', modify
label define Lexitreason 7 `"Family aggregation"', modify
label define Lexitreason 8 `"Collective aggregation"', modify
label define Lexitreason 9 `"Family split"', modify
label define Lexitreason 10 `"Collective split"', modify
label define Lexitreason 11 `"End of Ranking"', modify
label values exitreason Lexitreason

label define Lentryreason 1 `"Unexplained"', modify
label define Lentryreason 2 `"Entered"', modify
label define Lentryreason 3 `"Re-entered"', modify
label define Lentryreason 4 `"Migration"', modify
label define Lentryreason 5 `"Control transfer"', modify
label define Lentryreason 6 `"Inheritance"', modify
label define Lentryreason 7 `"Family aggregation"', modify
label define Lentryreason 8 `"Collective aggregation"', modify
label define Lentryreason 9 `"Family aggregation (with members priorly not in the ranking)"', modify
label define Lentryreason 10 `"Collective aggregation (with members priorly not in the ranking)"', modify
label define Lentryreason 11 `"Family split"', modify
label define Lentryreason 12 `"Collective split"', modify
label define Lentryreason 13 `"Start foreigners"', modify
label define Lentryreason 14 `"Start ranking"', modify
label values entryreason Lentryreason

label define Lwealth_origin 1 `"wealth acquired through marriage"', modify
label define Lwealth_origin 2 `"inherited"', modify
label define Lwealth_origin 3 `"self-made"', modify
label values wealth_origin Lwealth_origin

label define Lindustry 1 `"pharmaceuticals; chemistry; biotechnology; synthetics; fertilizers"', modify
label define Lindustry 2 `"trade; retail"', modify
label define Lindustry 3 `"commodities; commodity trading"', modify
label define Lindustry 4 `"shareholdings; investments"', modify
label define Lindustry 5 `"art; various collections (incl. car collections); horse breeding"', modify
label define Lindustry 6 `"industry; manufacturing"', modify
label define Lindustry 7 `"food, drinks and tobacco industry"', modify
label define Lindustry 8 `"banking; insurance; finance industry"', modify
label define Lindustry 9 `"services"', modify
label define Lindustry 10 `"construction (incl. construction materials)"', modify
label define Lindustry 11 `"machinery"', modify
label define Lindustry 12 `"media (incl. publishing)"', modify
label define Lindustry 13 `"real estate"', modify
label define Lindustry 14 `"watches; jewelry; luxury goods"', modify
label define Lindustry 15 `"athletes"', modify
label define Lindustry 16 `"musicians; writers"', modify
label define Lindustry 17 `"ICT; telecommunications; internet"', modify
label define Lindustry 18 `"sports industry"', modify
label define Lindustry 19 `"high-tech industry; electronics"', modify
label define Lindustry 20 `"restaurants; hospitality; hotels"', modify
label define Lindustry 21 `"perfumes; cosmetics; beauty care products"', modify
label define Lindustry 22 `"fashion and textile industry"', modify
label define Lindustry 23 `"other consumer goods"', modify
label define Lindustry 24 `"shipping; transportation; distribution; logistics"', modify
label define Lindustry 25 `"energy and oil industry"', modify
label define Lindustry 26 `"other"', modify
label values industry_main industry_1 industry_2 industry_2 industry_3 Lindustry



label define Lcanton 1 `"Zürich"', modify
label define Lcanton 2 `"Bern"', modify
label define Lcanton 3 `"Luzern"', modify
label define Lcanton 4 `"Uri"', modify
label define Lcanton 5 `"Schwyz"', modify
label define Lcanton 6 `"Obwalden"', modify
label define Lcanton 7 `"Nidwalden"', modify
label define Lcanton 8 `"Glarus"', modify
label define Lcanton 9 `"Zug"', modify
label define Lcanton 10 `"Fribourg"', modify
label define Lcanton 11 `"Solothurn"', modify
label define Lcanton 12 `"Basel-Stadt"', modify
label define Lcanton 13 `"Basel-Landschaft"', modify
label define Lcanton 14 `"Schaffhausen"', modify
label define Lcanton 15 `"Appenzell Ausserrhoden"', modify
label define Lcanton 16 `"Appenzell Innerrhoden"', modify
label define Lcanton 17 `"St. Gallen"', modify
label define Lcanton 18 `"Graubünden"', modify
label define Lcanton 19 `"Aargau"', modify
label define Lcanton 20 `"Thurgau"', modify
label define Lcanton 21 `"Ticino"', modify
label define Lcanton 22 `"Vaud"', modify
label define Lcanton 23 `"Valais"', modify
label define Lcanton 24 `"Neuchâtel"', modify
label define Lcanton 25 `"Genève"', modify
label define Lcanton 26 `"Jura"', modify
label values canton Lcanton

label define Lold_wealth_ww2 0 `"wealth foundation was NOT laid before 1945"', modify
label define Lold_wealth_ww2 1 `"wealth foundation was laid before 1945"', modify
label values old_wealth_ww2 Lold_wealth_ww2

label define Lforeigners_in_ranking 0 `"foreigners NOT included in the ranking"', modify
label define Lforeigners_in_ranking 1 `"foreigners included in the ranking"', modify
label values foreigners_in_ranking Lforeigners_in_ranking

label define Lforeignborn 0 `"not foreignborn"', modify
label define Lforeignborn 1 `"foreignborn"', modify
label values foreignborn Lforeignborn

label define Lmanager 0 `"not a manager"', modify
label define Lmanager 1 `"manager"', modify
label values manager Lmanager

label define Lfemale_2 0 `"male"', modify
label define Lfemale_2 1 `"female"', modify
label define Lfemale_2 7 `"joint"', modify
label define Lfemale_2 99 `"no information"', modify
label values female_2 Lfemale_2

label define Lfemale 0 `"male"', modify
label define Lfemale 1 `"female"', modify
label values female Lfemale

label define Lfamily 0 `"single individual"', modify
label define Lfamily 1 `"family or some other collective"', modify
label values family Lfamily
